﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using SelfService.Model.Models;


namespace SelfService.ViewModel.SysClientTaskVMs
{
    public partial class SysClientTaskTemplateVM : BaseTemplateVM
    {
        public ExcelPropety Action_Excel = ExcelPropety.CreateProperty<SysClientTask>(x => x.Action);
        public ExcelPropety Client_Excel = ExcelPropety.CreateProperty<SysClientTask>(x => x.ClientId);
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<SysClientTask>(x => x.CreateTime);
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<SysClientTask>(x => x.UpdateTime);

	    protected override void InitVM()
        {
            Client_Excel.DataType = ColumnDataType.ComboBox;
            Client_Excel.ListItems = DC.Set<SysClient>().GetSelectListItems(Wtm, y => y.Name);
        }

    }

    public class SysClientTaskImportVM : BaseImportVM<SysClientTaskTemplateVM, SysClientTask>
    {

    }

}
